package com.auction.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class AuctionDTO implements Serializable {
    private Long id; // 拍卖品ID

    private Long categoryId; // 类目ID

    private String title; // 拍卖品标题

    private String description; // 详细描述

    private String image; // 图片

    private BigDecimal startPrice; // 起拍价

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime; // 开始时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime; // 结束时间
}
